home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / test / fltcast.c < prev    next >
C/C++ Source or Header  |  1992-11-23  |  237b  |  17 lines

  1.  
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4.  
  5. main(ac, av)
  6. char *av[];
  7. {
  8.     float a = atof(av[1]);
  9.     double b = atof(av[1]);
  10.     float c = (float)b;
  11.     double d = (double)a;
  12.  
  13.     printf("%lf %lf %lf %lf\n", a, b, c, d);
  14.  
  15.     return(0);
  16. }
  17.